<template>
  <div class="loading-container">
    <div class="loading-spinner">
      <el-icon class="is-loading loading-icon"><Loading /></el-icon>
      <span class="loading-text">文档加载中...</span>
    </div>
    <el-skeleton :rows="10" animated class="loading-skeleton" />
  </div>
</template>

<script setup>
import { Loading } from '@element-plus/icons-vue';
</script>

<style scoped>
.loading-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.loading-icon {
  font-size: 40px;
  color: #3b82f6;
}

.loading-text {
  color: #3b82f6;
  font-weight: 500;
  margin-top: 8px;
}

.loading-skeleton {
  margin-top: 32px;
  width: 100%;
  max-width: 600px;
}

@media (max-width: 768px) {
  .loading-icon {
    font-size: 32px;
  }
  
  .loading-text {
    font-size: 14px;
  }
  
  .loading-skeleton {
    margin-top: 20px;
    max-width: 100%;
  }
}
</style> 